package com.kafka.dao;

import com.kafka.bean.SaleDetail;
import com.kafka.bean.resultmap.SaleDetailResultMap;

public interface SaleDetailMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SaleDetail record);

    int insertSelective(SaleDetail record);

    SaleDetail selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SaleDetail record);

    int updateByPrimaryKey(SaleDetail record);
    
    SaleDetailResultMap sumRealCharges(String serialNum);
    
    int deleteBySerialNum(String serialNum);
}